package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamSubjectMapper;
import com.ruoyi.system.domain.ExamSubject;
import com.ruoyi.system.service.IExamSubjectService;
import com.ruoyi.common.core.text.Convert;

/**
 * 面试考题记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-03
 */
@Service
public class ExamSubjectServiceImpl implements IExamSubjectService 
{
    @Autowired
    private ExamSubjectMapper examSubjectMapper;

    /**
     * 查询面试考题记录
     * 
     * @param examId 面试考题记录主键
     * @return 面试考题记录
     */
    @Override
    public ExamSubject selectExamSubjectByExamId(Long examId)
    {
        return examSubjectMapper.selectExamSubjectByExamId(examId);
    }

    /**
     * 查询面试考题记录列表
     * 
     * @param examSubject 面试考题记录
     * @return 面试考题记录
     */
    @Override
    public List<ExamSubject> selectExamSubjectList(ExamSubject examSubject)
    {
        return examSubjectMapper.selectExamSubjectList(examSubject);
    }

    /**
     * 新增面试考题记录
     * 
     * @param examSubject 面试考题记录
     * @return 结果
     */
    @Override
    public int insertExamSubject(ExamSubject examSubject)
    {
        return examSubjectMapper.insertExamSubject(examSubject);
    }

    /**
     * 修改面试考题记录
     * 
     * @param examSubject 面试考题记录
     * @return 结果
     */
    @Override
    public int updateExamSubject(ExamSubject examSubject)
    {
        return examSubjectMapper.updateExamSubject(examSubject);
    }

    /**
     * 批量删除面试考题记录
     * 
     * @param examIds 需要删除的面试考题记录主键
     * @return 结果
     */
    @Override
    public int deleteExamSubjectByExamIds(String examIds)
    {
        return examSubjectMapper.deleteExamSubjectByExamIds(Convert.toStrArray(examIds));
    }

    /**
     * 删除面试考题记录信息
     * 
     * @param examId 面试考题记录主键
     * @return 结果
     */
    @Override
    public int deleteExamSubjectByExamId(Long examId)
    {
        return examSubjectMapper.deleteExamSubjectByExamId(examId);
    }
}
